<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLaohaBlogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('laoha_blogs', function (Blueprint $table) {
            $table->uuid('id');
            $table->integer('user_id')->default(0);
            $table->integer('cate_id')->default(0);
            $table->string('title');
            $table->string('desc')->nullable();
            $table->text('content');
			$table->string('parse')->nullable();
            $table->string('image')->nullable();
			$table->string('pos')->nullable();
			$table->string('group')->nullable();
            $table->tinyInteger('status')->default(1);
            $table->timestamps();
			$table->primary('id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('laoha_blogs');
    }
}
